package com.biz.primus.ms.order;

import com.biz.primus.ms.base.config.BaseConfiguration;
import com.biz.primus.ms.order.stream.*;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Import;

/**
 * @author yanweijin
 * @date 2017/9/22
 * @modifier Tiger Feng 2017-10-30
 */
@SpringCloudApplication
@Import({
        BaseConfiguration.class,
})
@EnableBinding({
        OrderCollectionSource.class,
        OrderStateSource.class,
        OrderStateSink.class,
        ReturnCollectionSource.class,
        ReturnCollectionSink.class,
        ReturnStateSink.class,
        ReturnStateSource.class
})
public class OrderServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApplication.class, args);
    }
}
